using GameFramework.Fsm;
using GameFramework.Procedure;

public class ResourceUpdateProcedure : GameBaseProcedure
{
    private bool udpateFinishFlag = false;
    protected override void OnEnter(IFsm<IProcedureManager> procedureOwner)
    {
        base.OnEnter(procedureOwner);
    }

    protected override void OnNewUpdate(IFsm<IProcedureManager> procedureOwner, float elapseSeconds, float realElapseSeconds)
    {
        base.OnNewUpdate(procedureOwner, elapseSeconds, realElapseSeconds);

        if (!udpateFinishFlag)
            return;

        ChangeState<ResourceInitLoadProcedure>(procedureOwner);
    }
}